package by.amakarevich.services;

import org.springframework.transaction.annotation.Transactional;

import by.amakarevich.datamodel.Yarn;
import by.amakarevich.datamodel.Product;

public interface YarnService {
	
	@Transactional
	void createNewYarn(Yarn yarn, Product product);
	
	@Transactional
	Yarn get(Long id);
	
	@Transactional
	void updateYarn(Yarn yarn);
	
	@Transactional
	void removeYarn(Long id);
	
	@Transactional
    void deleteAll();
}
